package com.hlhj.funlike_business.presenter;

import android.content.Context;

import com.example.mymvp.mvp.BasePresenter;
import com.hlhj.funlike_business.bean.OrderListBean;
import com.hlhj.funlike_business.moudle.CompletedFragmentMoudle;
import com.hlhj.funlike_business.views.CompletedFragmentView;

import java.util.List;

public class CompletedFragmentPresenter extends BasePresenter<CompletedFragmentMoudle,CompletedFragmentView> implements CompletedFragmentMoudle.getOrderLsit {
    @Override
    public void createModule() {
        module = new CompletedFragmentMoudle();
        module.setListener(this);
    }
    public void LoadOrderList(Context context, int status, int p, int num){
        module.LoadOrderList(context,status,p,num);
    }

    @Override
    public void loadOrderList(List<OrderListBean.DataBeanX.DataBean> dataBeans) {
        getView().showOrderList(dataBeans);
    }
}
